package com.base.common.persistent.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.base.common.persistent.model.MeetingAuthorize;
import com.cjy.common.annotation.MyBatisRepository;

@MyBatisRepository
public interface MeetingAuthorizeMapper {

	/**
	 * 添加会议权限
	 * 
	 * @return
	 */
	public int addMeetingAuthorize(MeetingAuthorize meetingAuthorize);
	
	/**
	 * 根据会议id和员工id查询会议权限表信息
	 * 
	 * @return
	 */
	public List<MeetingAuthorize> selectMeetingAuthorizeByMeetingIdAndEmployeeId(@Param(value = "meetingId")int meetingId, @Param(value = "employeeId")int employeeId);

	/**
	 * 根据会议ID删除参会人员
	 * 
	 * @param meetingId
	 * @return
	 */
	public int deleteByMeetingId(@Param("meetingId")int meetingId);
}
